package com.npave.zryhadapter.response;

/**
 * @author zejiang wu
 * @date 2022/6/30
 * @description
 */
public enum ReturnMsg {
    SUCCESS("0000",""),
    PARAM_ERROR("0001","参数异常"),
    SYSTEM_EXCEPTION("0002","系统异常"),
    SYSTEM_BUSY("0003","系统繁忙"),
    SERVICE_NOT_FORBID("0004","服务不支持"),
    USER_NOT_LOGIN("0006", "用户未登录"),

    //tenant errors
    TENANT_NOT_EXITS("10001", "企业信息不存在"),
    TENANT_NOT_AUTH_OR_NOT_EXITS("10002", "企业不存在或者未授权"),
    TENANT_PARTNER_NOT_EXITS("10003", "合作医院不存在"),
    TENANT_MEMBER_INVITE_EXITS("10004", "请勿重复添加"),
    TENANT_MEMBER_EXITS("10005", "成员已存在，无法再次添加"),
    TENANT_MEMBER_TRIAGER_EXITS("10006", "已存在分诊员"),
    TENANT_MEMBER_ADMIN_DEL("10007", "无法删除管理员"),
    TENANT_PARTNER_EXITS("10008", "已存在该合作医院"),
    TENANT_PARTNER_CANCEL("10009", "已取消与该医院合作"),
    TENANT_MEMBER_INVITE_NOT_FOUND("10010", "暂无邀请信息"),
    TENANT_MOLECULAR_DETECTION_NOT_FOUND("10011", "分子检测项目不存在"),
    TENANT_MEMBER_NOT_EXITS("10012", "成员不存在"),

    //user errors
    USER_NOT_ALLOW_AUTH("10101", "账号禁止登录，请联系管理员"),
    USER_AUTH_ERROR("10102", "用户名或密码错误"),
    USER_AUTH_LOGIN_START_ERROR("10103", "登录失效，请重新登录"),
    USER_AUTH_NOT_LOGIN("10104", "用户未登录"),
    USER_AUTH_NO_PERMISSION("10105", "用户没有操作权限"),
    USER_MOBILE_EXITS("10106", "手机号已被注册"),
    AUTHCODE_TYPE_NOT_EXIST("10107", "验证码类型不存在"),
    AUTHCODE_UPPER_LIMIT("10108", "验证码次数超限"),
    USER_REGISTER_YZM_ERROR_MORE("10109", "输入错误次数过多,请重新获取验证码"),
    USER_REGISTER_YZM_DISABLED("10110", "验证码错误，请重新获取验证码"),
    USER_YZM_ERROR("10111", "验证码错误"),
    AUTHCODE_ERROR_SEND("10112", "验证码发送失败"),
    PWD_ERROR("10114", "密码必须大于等于6位"),
    PWD_ORIGIN_ERROR("10115", "旧密码错误"),
    USER_MOBILE_NOT_EXITS("10116", "手机号还未注册"),
    USER_ROLE_EXITS("10117", "用户角色已存在"),
    DATA_DECODE_FAIL("10118", "数据解密失败"),

    //tenant case error
    LEND_AUTH_NOT_EXITS("10200", "暂不支持此认证方式"),
    LEND_AUTH_INFO_NULL("10201", "认证信息不能为空"),
    LEND_ORDER_NOT_EXITS("10202", "订单信息不存在"),
    LEND_SECTION_NOT_EXITS("10203", "数字切片信息不存在"),
    LEND_YOUR_PROCESSING_EXITS("10204", "请勿重复提交操作"),
    LEND_OTHERS_PROCESSING_EXITS("10205", "操作处理中，请稍后再试"),
    LEND_ORDER_SECTION_STATUS_ERROR("10206", "订单玻片状态有误"),
    LEND_ORDER_STATUS_ERROR("10207", "订单状态有误"),
    LEND_SHARE_NOT_EXITS("10208", "分享不存在"),
    LEND_SHARE_NEED_AUTH("10209", "请验证分享密码"),
    LEND_SHARE_AUTH_FAIL("10210", "分享密码错误"),
    LEND_ORDER_NUMPTH_ERROR("10211", "订单号与病理号不匹配"),
    LEND_SECTION_UPLOADING("10212", "切片信息解析中，请稍后再试"),
    LEND_SECTION_PARSING("10213", "数字切片解析中，请稍后再试"),

    LEND_SHARE_PASSWORD_LENGTH_ERROR("10214", "分享密码错误，长度必须为6位"),

    LEND_SHARE_PASSWORD_CONTENT_ERROR("10215", "分享密码错误，必须为数字与大写字母组合"),

    //SECTION error
    SECTION_EXITS("10301", "切片文件已存在"),
    SECTION_NOT_EXITS("10302", "切片文件不存在或未解析完成"),
    SECTION_CHUNK_NOT_EXITS("10303", "切片分片文件不存在"),
    SECTION_CHUNK_EMPTY("10304", "切片分片文件为空"),
    SECTION_CHUNK_SAVE_FAIL("10305", "切片分片文件保存失败"),
    SECTION_CHUNK_NOT_COMPLETE("10306", "切片分片未上传完成"),
    SECTION_CASE_BOUND("10307", "切片已绑定病例，无法删除"),
    SECTION_MARK_NOT_EXITS("10308", "切片标注信息不存在"),

    SECTION_MARK_USER_ERROR("10309", "无法操作他人标注"),

    SECTION_PARING("10309", "切片文件解析中"),
    SECTION_FILE_NAME_ERROR("10310", "切片不存在"),
    ;

    public String code;
    public String msg;

    ReturnMsg(String code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
